#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
typedef int DataType;

typedef struct QueueNode {
	DataType data;
	struct QueueNode* next;
}QNode;

typedef struct QueueList {
	QNode* head;
	QNode* tail;
}Queue;

void QueueInit(Queue* q);
void QueueDestroy(Queue* q);
void QueuePush(Queue* q, DataType x);
void QueuePop(Queue* q);
DataType QueueFront(Queue* q);
DataType QueueBack(Queue* q);
bool QueueEmpty(Queue* q);
int QueueSize(Queue* q);